package test3

object Keli {
  def main(args: Array[String]): Unit = {
    //def  Mod(m:Int,n:Int)=(m%n==0)
    def Mod(m: Int)(n: Int) = (m % n == 0)

    //println(Mod(10,2));
    println(Mod(15)(3))
    val f = Mod(12)(_)
    println(f)
    println(f(6))
    // val f2=Mod(18,9)
    //println(f2)

    def f1(x: Int) = Mod(18)(x)

    println(f1(5))

    //    def f4=Mod()(2)
    //    println(f4(19))
    println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>")

    def sum(x: Int)(implicit y: Int) = (x + y)

    implicit var c: Int = 200;
    val total = sum(20)
    println(total)
  }
}
